#ifndef TIME_STAMP_FILTER_H_H
#define TIME_STAMP_FILTER_H_H

#include <streams.h>

class TimeStampFilter : public CTransInPlaceFilter
{
public:
	static CUnknown* WINAPI CreateInstance(LPUNKNOWN unknown, HRESULT* hr)
	{
		return new TimeStampFilter(hr);
	}
	TimeStampFilter(HRESULT* hr);
	HRESULT CheckInputType(const CMediaType* mtIn);
//	HRESULT CheckTransform(const CMediaType* mtIn, const CMediaType* mtOut);
//	HRESULT DecideBufferSize(IMemAllocator*, ALLOCATOR_PROPERTIES *);
//	HRESULT GetMediaType(int iPosition, CMediaType *pMediaType);
	HRESULT Transform(IMediaSample *pSample);
	void start();
	void stop();
private:
	bool m_IsStart;
};

#endif